package com.xiantianxia.lty.plan.vo;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.ibatis.type.Alias;

@Alias("planVo")
public class PlanVo {
	private Integer planId;
	private String planName;
	private Date planDate;
	private String planDate1;

	private String startDate;
	private String endDate;

	private String userId;
	private String userName;
	private String userDept;
	private Integer count;

	public Integer getPlanId() {
		return planId;
	}

	public void setPlanId(Integer planId) {
		this.planId = planId;
	}

	public String getPlanName() {
		return planName;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}

	public Date getPlanDate() {
		return planDate;
	}

	public String getPlanDate1() {
		return planDate1;
	}

	public void setPlanDate1(String planDate1) {
		this.planDate1 = planDate1;
	}

	public String getPlanDate1Str() {
		if (planDate != null) {
			return new SimpleDateFormat("yyyy-MM-dd").format(planDate);
		}
		return "";
	}

	public String getPlanDateStr() {
		if (planDate != null) {
			return new SimpleDateFormat("yyyy/MM/dd").format(planDate);
		}
		return "";
	}

	public void setPlanDate(Date planDate) {
		this.planDate = planDate;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserDept() {
		return userDept;
	}

	public void setUserDept(String userDept) {
		this.userDept = userDept;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

}
